<?php
/**
 * The Sidebar containing the primary and secondary widget areas.
 *
 */

$blog = get_category_by_slug('blog');
?>
<div id="tools" class="grid_6 suffix_1">
		<h2 class="rounded first"><?php _e( 'Recent entries', ns_text_domaine ); ?></h2>
		
		<?php
			// Get latest entry
			$args = array_merge( $wp_query->query, array( 'posts_per_page' => 10, 'category__not_in' => array( 1, $blog->term_id )  ) );
			query_posts( $args );
		?>
		
		<?php if ( ! have_posts() ) : ?>
		
			<p><?php _e('No content available yet!.', ns_text_domaine); ?></p>
		
		<?php else : ?>

			<?php while ( have_posts() ) : the_post();?>
				<ul id="word_loop">
					<li><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'See entry %s', ns_text_domaine ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></li>
				</ul>
			
			<?php endwhile; 
		endif;
			
			// Reset Query
			wp_reset_query();
		?>
	</div>